package org.platform.common.result;

import java.io.Serializable;

/**
 * <pre>
 * 功能：返回结果集
 * </pre>
 * @author wei.gao
 * @param <T>
 */
public class ResultSet<T> implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = -8900933229413960540L;

	/**
     * 数据项
     */
    private T result;

    /**
     * 临时用户信息
     */
    private Object user;

    /**
     * 附加信息
     */
    private Object attach;

    public ResultSet(){};

    public ResultSet(T result) {
        this.result = result;

    }

    public ResultSet(T result, Object user) {
        this.result = result;
        this.user = user;
    }

    public ResultSet(T result, Object user, Object attach) {
        this.result = result;
        this.user = user;
        this.attach = attach;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public void setUser(Object user) {
        this.user = user;
    }

    public void setAttach(Object attach) {
        this.attach = attach;
    }

    public T getResult() {
        return result;
    }

    public Object getUser() {
        return user;
    }

    public Object getAttach() {
        return attach;
    }
}
